package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 警车档案业务对象 police_vehicle
 *
 * @author ruoyi
 * @date 2025-06-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PoliceVehicleBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 管理单位
     */

    private Long managementUnit;

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plateNumber;

    /**
     * 车架号
     */
    @NotBlank(message = "车架号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String frameNumber;

    /**
     * 车辆类型
     */
    @NotBlank(message = "车辆类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vehicleType;

    /**
     * 品牌型号
     */
    @NotBlank(message = "品牌型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brandModel;

    /**
     * 车辆用途
     */
    @NotBlank(message = "车辆用途不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vehiclePurpose;

    /**
     * 登记日期
     */
    @NotNull(message = "登记日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date registrationDate;


}
